from car import Car,ElectricCar

my_new_car=Car('audi','a4',2019)
print(my_new_car.get_descriptive_name())

my_new_car.odometer_reading=23
my_new_car.read_odometer()

my_beetle=Car('volkswagen','beetle',2019)
print(my_beetle.get_descriptive_name())

my_tesla=ElectricCar('tesla','roadster',2019)
print(my_tesla.get_descriptive_name())

#导入整个模块
import car

my_beetle=car.Car('volkswagen','beetle',2019)
print(my_beetle.get_descriptive_name)

my_tesla=car.ElectricCar('tesla','roadster',2019)
print(my_tesla.get_descriptive_name)

#导入模块中的所有类
from car import *